import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    myBlogLength: 0,
    myattentionLength: 0,
    myFansLength: 0,
    isdisheaderC: true,
    myPraiseLength: 0,
    isMDnull: true,
    ifLogin: false
  },
  mutations: {
    updareMyblogLength(state, length) {
      state.myBlogLength = length
    },
    updateMyattentionLength(state, length) {
      state.myattentionLength = length
    },
    updateMyFansLength(state, length) {
      state.myFansLength = length
    },
    updateisdisheaderC(state, is) {
      state.isdisheaderC = is
    },
    updatemyPraiseLength(state, length) {
      state.myPraiseLength= length
    },
    updateisMDnull(state, isnull) {
      state.isMDnull = isnull
    },
    updateifLogin(state, ifs) {
      state.ifLogin = ifs
    }
  },
  actions: {
  },
  modules: {
  }
})
